package com.iwomy.envpro.platform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.extension.mapping.base.MPJDeepService;
import com.iwomy.envpro.platform.entity.AirFactorEntity;
import com.iwomy.envpro.platform.entity.DataTemplateDetailsEntity;
import com.iwomy.envpro.platform.entity.DataTemplateEntity;

import java.util.List;

public interface DataTemplateService extends MPJDeepService<DataTemplateEntity> {
    Boolean saveDeep(DataTemplateEntity dataTemplate);

    Boolean updateDeep(DataTemplateEntity dataTemplate);

    Boolean removeDeep(Long[] ids);

    Boolean removeChild(Long[] ids);

	DataTemplateEntity getOneByTemplateName(String templateName);

	List<AirFactorEntity> factorDetailList(DataTemplateEntity DataTemplateEntity);

	Page pageByScope(Page page,DataTemplateEntity dataTemplate);

	List<DataTemplateEntity> listByScope(DataTemplateEntity DataTemplateEntity);


	List<DataTemplateEntity> listByDeptId(Long deptId);

}